<!DOCTYPE html>
<!--[if IE 8]>         <html class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
	<!--<![endif]-->
	<html>

	<head>
		<!-- Basics -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>.:: Abe Peng ::.</title>

		<meta name="description" content="Abe Peng, Android / iOS / JAVA /C#">

		<!-- Favicons -->
		<link rel="shortcut icon" href="website/img/favicons/favicon.ico">

		<!-- Mobile -->
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

		<!-- CSS -->
		<link rel="stylesheet" href="website/css/normalize.min.css">
		<link rel="stylesheet" href="website/css/main.css">

		<!-- Fonts -->
		<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:300,400,700'>

		<script language="JavaScript" type="text/javascript">
			window.onload = function() {
				//创建一个img元素  
				var bigImg = document.createElement("img");
				bigImg.src = getPic();
				//为dom添加子元素img 
				var myDiv = document.getElementById('myDiv');
				myDiv.appendChild(bigImg);
			}

			function GetQueryString(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				if(r != null) return unescape(r[2]);
				return null;
			}

			function getPic() {
				return GetQueryString("codetype") == "wechat" ? "img/qrcode_wechat.png" : "img/qrcode_qq.jpg";
			}
		</script>
	</head>

	<body>
		<div id="myDiv" style="border:1px solid #eee;width:320px;height:160px;"></div>
	</body>

	</html>